package Hibernate.ManytoMay.Test;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Event
	{

		private Long id;

		private String title;

		private Date date;

		private Set persons = new HashSet();

		public Event()
			{
			}

		public Long getId()
			{
				return id;
			}

		private void setId(Long id)
			{
				this.id = id;
			}

		public Date getDate()
			{
				return date;
			}

		public void setDate(Date date)
			{
				this.date = date;
			}

		public String getTitle()
			{
				return title;
			}

		public void setTitle(String title)
			{
				this.title = title;
			}

		public Set getPersons()
			{
				return persons;
			}

		public void setPersons(Set persons)
			{
				this.persons = persons;
			}

	}